<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>蘑菇牛的记事本</title>
    <meta content="{$Page.PageDescription}" name="Description">
    <meta content="{$Page.PageKeywords}" name="Keywords">
    <meta charset="UTF-8">
    <!--坑爹的IE兼容-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!--坑爹的将360默认为极速模式打开-->
    <meta name="renderer" content="webkit">
    <!--移动优先-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--图标引入-->

    <!-- Bootstrap css file v3.2.0 -->
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.css">
    <link href="/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

    <!--代码美化-->
    <link href="/css/jquery.snippet.css" rel="stylesheet" type="text/css"/>

    <!--[if lte IE 7]>
    <link href="/css/font-awesome-ie7.min.css" rel="stylesheet" type="text/css"/>
    <![endif]-->

    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->

    <link href="/css/mooshroom.css" rel="stylesheet" type="text/css"/>
    <link href="/css/code.css" type="text/css" rel="stylesheet"/>

    <!-- jQuery 1.7.2 or higher -->
    <script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
</head>
<body>
<!--导航-->
<nav class=" navbar-inverse" role="navigation">

        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navMain">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">
                <img alt="home" src="/img/MooshroomFace.png" class="alive-hover">
            </a>
        </div>
        <div class="collapse navbar-collapse" id="navMain">
            <ul class="nav navbar-nav">
                <% if (user) { %>
                <li><a title="首页" href="/">首页</a></li>
                <li><a title="发表" href="/post">发表文章</a></li>
                <% } else { %>
                <li><a title="首页" href="/">首页</a></li>
                <% } %>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <% if (user) { %>

                <li><a title="登出" href="/logout">登出</a></li>
                <% } else { %>
                <li><a title="登录" href="/login">登录</a></li>
                <li><a title="注册" href="/reg">注册</a></li>
                <% } %>
            </ul>
        </div>

</nav>



